import { request, requestMock } from "@/request";

//请求三级分类的1级分类
export const reqCategory1List = () => {
  return request.get(`/admin/product/getCategory1`);
};

//请求三级分类的2级分类
export const reqCategory2List = (category1Id) => {
  return request.get(`/admin/product/getCategory2/${category1Id}`);
};
//请求三级分类的 3级分类请求
export const reqCategory3List = (category2Id) => {
  return request.get(`/admin/product/getCategory3/${category2Id}`);
};
//请求banner轮播图封装
export const reqBannerList = () => {
  return requestMock.get("/api/banner");
};
//请求floor数据
export const reqFloorList = () => {
  return requestMock.get("/api/floor");
};
